/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.memento;

import java.math.BigDecimal;

/**
 *
 * @author xiay
 * @since 2020/12/17 4:01 下午
 */
public class EmpMemento {

    private String no;

    private String name;

    private BigDecimal salary;

    public EmpMemento(Emp emp) {
        this.no = emp.getNo();
        this.name = emp.getName();
        this.salary = emp.getSalary();
    }

    public String getNo() {
        return this.no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getSalary() {
        return this.salary;
    }

    public void setSalary(BigDecimal salary) {
        this.salary = salary;
    }
}
